﻿[


		define_tag(
			'checkCache',
			-nameSpace	= 'er_',
			-required   = 'page',
			-encodenone);

			local('page' = #page);

			!(#page) ? return(false);
			
		
			#return = string_replaceregexp(-find = '(?m)^(.*)$', -replace = #_c '\\1', #d);

			if(local_defined('trim'));
				#return = string_replaceregexp(-find = '(?m)[\t ]+$', -replace = '', #return);
				#return = string_replaceregexp(-find = '^(?:\r\n|\r|\n)+', -replace = '', #return);
				#return = string_replaceregexp(-find = '(?:\r\n|\r|\n)+$', -replace = '', #return);
			/if;

			if(#save_textarea->size);
				iterate(#save_textarea, #i);
					#return->replace('<<<XPM TEXTAREA ' loop_count '>>>', #i);
				/iterate;
			/if;

			if(#save_pre->size);
				iterate(#save_pre, #i);
					#return->replace('<<<XPM PRE ' loop_count '>>>', #i);
				/iterate;
			/if;

			return(#return);

		/define_tag;


]